﻿@page "/"
@* @inherits YiMeiJiaService.Assembly.BaseComponent *@
@using YiMeiJiaLibModel.Config


<header class="demos-header" style="padding: 35px 0;">
    <h1 class="demos-title" style="text-align: center;
    font-size: 34px;
    color: #3cc51f;
    font-weight: 400;
    margin: 0 15%;">
        Yi-Mei-Jia/广告/.
    </h1>
</header>
<div class="weui-loadmore">
    <i class="weui-loading"></i>
    <span class="weui-loadmore__tips">暂无广告</span>
</div>
<div class="weui-loadmore weui-loadmore_line">
  
</div>
<div class="weui-msg">
    <div class="weui-msg__icon-area">
        <span class="weui-loadmore__tips" id="djs"></span>
    </div>
    <div class="weui-msg__text-area">
        <h2 class="weui-msg__title">测试专区</h2>
        <p class="weui-msg__desc">也可以当广告页,快速进入想要测试的页面</p>
    </div>
    <div class="weui-msg__opr-area">
        <p class="weui-btn-area">
            <a href="/Home/Index" class="weui-btn weui-btn_primary">进入首页</a>
            <a href="/Account/Login" class="weui-btn weui-btn_default">进入登录</a>
            <a href="/Find/GLis" class="weui-btn weui-btn_default">游戏中心</a>
            <a href="/Find/GLiiDemo" class="weui-btn weui-btn_default">App广告演示</a>
        </p>
    </div>
    <div class="weui-msg__extra-area">
        <div class="weui-footer">
            <p class="weui-footer__links">
                <a href="javascript:void(0);" class="weui-footer__link">底部链接文本</a>
            </p>
            <p class="weui-footer__text">Copyright © 2008-2016 weui.io</p>
        </div>
    </div>
</div>
<div class="weui-loadmore weui-loadmore_line" style="width:100%;text-align:center;">
    <a href="/Home/Index" style="font-size:20px;" id="tg">跳过</a>
</div>
<div class="weui-loadmore weui-loadmore_line weui-loadmore_dot" id="box">
    <p></p>
</div>



<div class="weui-footer" style="margin:0 auto; position:fixed;bottom:10px;text-align:center;width:100%;">
    <p class="weui-footer__text">Copyright © 2008-2023 开发者</p>
</div>
<style>
    #box {
        background-color: #000;
        color: #fff;
        text-align: left;
        padding: 5px;
        border-radius: 5px;
        box-shadow: 1px 1px 1px solid red;
        width: 100%;
    }

        #box p {
            color:#fff;
        }
</style>
<script>
    var cmds = [
        "1","这里是测试专用的，随便输入"
    ];
    var x = 30;
    var f = function () {
         
        if (x > 0) {
            x--;
            $("#djs").html(`倒计时：${x}`);
            if (cmds.length > 0) {
                var cmd = cmds[0];
                cmds.shift();
                $("#box").prepend(`&lt;p&gt  ${cmd} ;&lt;/p&gt;   `);
             
            } else {

                // $.alert("点击确认进入首页", "组件加载完成", function () {
                //     window.location.href = "/Home/Index";
                // });
                // $.notification({
                //     title: "组件加载",
                //     text: "完成",
                //     media: "",
                //     data: "123",
                //     onClick: function (data) {
                //         window.location.href = "/Home/Index";
                //     },
                //     onClose: function (data) {
                //         window.location.href = "/Home/Index";
                //     }
                // });

            }
           

            window.setTimeout(function () {
                f();
            }, 1000);
        } else {
            
            // window.location.href = "/Home/Index";
        }
    }
    f();
</script>
 